package com.caiden_micheal.base.constant;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LoggerHead {
    public static String errorHead() {
        Date currentDate = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formattedDate = sdf.format(currentDate);
        return "[Error " + formattedDate + "] ";
    }

    public static String warnHead() {
        Date currentDate = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String formattedDate = sdf.format(currentDate);
        return "[Warn " + formattedDate + "] ";
    }
}
